<template>
    <div style="width: 100px">

    </div>
</template>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=QVPUXLMOREoVZtlOXb2sOAVbEUsYYCsU"></script>
<script>

    export default {
        name: "Dmapview",
        data() {
            return {
                /*LocationCity: '正在定位',
                success: false*/
            };
        },
        methods: {
           /* getLocation() {
                const geolocation = new BMap.Geolocation();
                var _this = this;
                _this.LocationCity = '正在定位';
                geolocation.getCurrentPosition(function getinfo(position){
                    let city = position.address.city;             //获取城市信息
                    let province = position.address.province;    //获取省份信息
                    _this.LocationCity = city;
                    _this.success = true;
                }, function(e) {
                    _this.LocationCity = '定位失败, 请点击重试';
                    this.success = false;
                }, {provider: 'baidu'});
            }*/
        },
        mounted() {
            //this.getLocation();
        },
    }
</script>

<style scoped>

</style>